package com.lin.java.tool.send.model.dto;

import lombok.Data;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

@Data
public class EmailDTO {
    /**
     * 寄件人邮箱
     */
    private String from;
    /**
     * 邮箱模板tag
     */
    private String tag;
    /**
     * 接收用户邮箱
     */
    private List<String> emails;
    /**
     * 模板变量值
     */
    private Map<String, Object> variables;
    /**
     * 附件
     */
    private Attachment attachment;

    @Data
    public static class Attachment {
        /**
         * 附件名称
         */
        private String filename;
        /**
         * 附件流
         */
        private InputStream inputStream;

    }


}
